package org.advanced.pipeline;

import redis.clients.jedis.Jedis;

/**
 * @author John.zhang
 * @version Id: MultiTest, v 1.0 2020/12/23 18:44 ZhiYong Exp $
 * 非管道测试
 */
public class MultiTest {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("10.181.144.255", 6379);
        long start = System.currentTimeMillis();
        int max = 100;
        for(int i =0; i< max; i++){
            jedis.set("key"+i, i+"");
        }
        long end = System.currentTimeMillis();
        System.out.println("耗时：" + (end -start ) +"毫秒");
        jedis.close();
    }
}
